import { createRouter, createWebHistory } from 'vue-router'
import mRoutes from './modules/mobileRoutes'
import pRoutes from './modules/pcRoutes'
import { isMobileTerminal } from '~/utils/flexble'

const router = createRouter({
  history: createWebHistory(),
  routes: isMobileTerminal.value ? mRoutes : pRoutes,
})

export default router
